<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<jsp:include page="/usercenter/include/base_usercenter_pre_part.jsp"></jsp:include>
<div class="box_blue">
	<div class="box_title">
		我的订阅
	</div>
	<div class="box_body">

		<p>
			订阅邮箱:
			<s:property value="email" />
		</p>
		<s:if test="subscriptions==null || subscriptions.size==0">
			<p>
				<s:text name="subscription.no.record"></s:text>
			</p>
		</s:if>
		<s:else>
			<table style="width: auto;">
				<tr>
					<th>
						订阅内容
					</th>
					<th>
						订阅周期
					</th>
					<s:if test="currentUser!=null">
						<th>
							&nbsp;
						</th>
					</s:if>
				</tr>
				<s:iterator value="subscriptions">
					<tr>
						<td>
							<s:property value="getCategory(category).chainName" />
						</td>
						<td>
							<s:property value="getText(intervalText)" />
						</td>
						<s:if test="currentUser!=null">
							<td>
								<a href="<%=request.getContextPath()%>/subsc/removeSubsc.do?email=<s:property value="email"/>&category=<s:property value="category"/>"> 删除 </a>
							</td>
						</s:if>
					</tr>
				</s:iterator>
			</table>
		</s:else>
		<br />
		<p>
			<a href="<%=request.getContextPath()%>/subsc/editSubsc.do?email=<s:property value="email" />">增加订阅</a>
		</p>
	</div>
</div>
<jsp:include page="/usercenter/include/base_usercenter_last_part.jsp"></jsp:include>